import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useUserStore = defineStore(
  'user',
  () => {
    const user = ref({})
    const resetValue = newValue => {
      user.value = newValue
    }

    return { user, resetValue }
  },
  {
    persist: true,
  }
)
